package com.haixinga.commbiz.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户（客户端）认证表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2020-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_member_auth")
public class MemberAuth implements Serializable {

    //-----
    public static LambdaQueryWrapper<MemberAuth> gw(){
        return new LambdaQueryWrapper<>();
    }


    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId(value = "auth_id", type = IdType.AUTO)
    private Integer authId;

    /**
     * user_id
     */
    private Integer userId;

    /**
     * 登录类型  1-昵称 2-手机号 3-邮箱  10-微信UNION_ID 11-微信小程序 12-微信公众号
     */
    private Integer identityType;

    /**
     * 认证标识 ( 用户名 | open_id | union_id )
     */
    private String identifier;

    /**
     * 密码凭证
     */
    private String credential;

    /**
     * salt
     */
    private String salt;


}
